#include "hex_file.h"

HEXFile::HEXFile()
{
}

HEXFile::~HEXFile()
{
}

std::string HEXFile::GetStatusMessage(void)
{
	std::string msg("");
	
	switch( Status )
	{
		case HEX_STATUS_OK:
			msg = "No Error";			
		break;
		
		case HEX_STATUS_FILEIOERROR: 
			msg = "File I/O Error";
		break;

		case HEX_STATUS_FILENOTFOUND:
			msg = "File not found";
		break;
		
		default:
			msg = "We should have never be here";
		break;
	}
	return msg;
}

void HEXFile::Init(void)
{
	filename = "";
	filesize = 0;
	nLines = 0;
	Lines = NULL;
	Status = HEX_STATUS_OK;
}

void HEXFile::LoadHEX(const char* filename)
{
	std::string s(filename);
	
	
}

void HEXFile::LoadHEX(const std::string filename)
{
}

